using MediatR;
using S.M.SmartMedical.Domain.DTOs;
using S.M.SmartMedical.ErrorCode;

namespace S.M.SmartMedical.API.Write.Application.Command
{
    /// <summary>
    /// 创建轮播图命令
    /// </summary>
    public class CreateCarouselCommand : IRequest<APIResult<CarouselDto>>
    {
        /// <summary>
        /// 轮播图信息
        /// </summary>
        public CarouselCreateDto Carousel { get; set; } = new();

        /// <summary>
        /// 构造函数
        /// </summary>
        /// <param name="carousel">轮播图信息</param>
        public CreateCarouselCommand(CarouselCreateDto carousel)
        {
            Carousel = carousel;
        }
    }
}